package cmcciot.onenet.nbapi.sdk.entity;

import cmcciot.onenet.nbapi.sdk.config.Config;

/**
 * @author LHL
 * @date: 2018/8/1
 */
public class ReadCommandDetails extends CommonEntity {
    private String uuid;

    public ReadCommandDetails(String imei, String uuid) {
        this.imei = imei;
        this.uuid = uuid;
    }

    @Override
    public String toUrl() {
        StringBuilder url = new StringBuilder(Config.getDomainName());
        url.append("/nbiot/offline/history/").append(this.uuid).append("?imei=").append(this.imei);
        return url.toString();
    }
}
